package cc.yugu.yhdw.webserver.biz.client;

import cc.yugu.yhdw.common.entity.RespBody;
import cc.yugu.yhdw.common.protocol.msg05.Msg052000002;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class Biz052000002 extends AbstractBiz {
    @Override
    public void doBiz(ChannelHandlerContext context, Map<String, Object> attributes, Object message) throws Exception {
        Msg052000002 msg = (Msg052000002) message;
        RespBody<Msg052000002> respBody = ClientBizUtils.respBodyPool.get(msg.getSerial());
        if(respBody != null) {
            respBody.setBody(msg);
        }
    }

}
